package com.ljs.config.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope //动态刷新配置
public class ConfigController {
    @Value("${acc.ljs}")
    String ll;
    @RequestMapping("/config")
    public String config(){
        return "查询成功"+ll;
    }
}
